Method
Namespace: Imagini.Drawing
Declared in: Imagini.Drawing.Surface
Creates a new surface from existing data. Data is copied.
public static Surface CreateFrom(
byte[] data,
int width,
int height,
int stride,
int depth,
int Rmask,
int Gmask,
int Bmask,
int Amask
)
data
The pixel data to create surface from
width
Surface width
height
Surface height
stride
Length of pixel row in bytes. RGBA = 4 * width
depth
Surface depth in bits (defaults to 32)